#include <QString>
#include <iostream>
#include "vertexTreeItem.h"

VertexTreeItem::VertexTreeItem(QTreeWidgetItem *_parentItem, Vertex *_v) : TreeItem(_parentItem), vertex(_v){
    setExpanded(true);

    QString str = QString::fromUtf8("Vértice ");

    str.append(QString::number(vertex->getId()));
    setText(0, str);
}

VertexTreeItem::~VertexTreeItem(){
}

Vertex *VertexTreeItem::getVertex(){
    return vertex;
}

void VertexTreeItem::select(bool _b){
    vertex->select(_b);
}
